var path = require('path');
module.exports = {
    entry: './entry.js',
    output: {
        filename: 'turntable.min.js',
        path: path.resolve(__dirname, 'dist')
    },
    module: {
        rules: [{
            test: /\.css$/,
            use: [
                { loader: "style-loader" },
                { loader: "css-loader" },
            ]
        }, {
            test: /\.(png|jpe?g|gif|ico)(\?\S*)?$/,
            use: [{
                loader: 'url-loader',
                options: {
                    limit: 8192,
                    name: '[path][name].[ext]'
                }
            }]
        }],
    }
}